#include "Tester.h"

configuration TesterAppC
{

}

implementation
{
  components MainC, LedsC;

  components TesterP as App;
  components MicaBusC;
  components DiagMsgC;
  
  components new TimerMilliC() as HeartBeat;

  components SerialActiveMessageC as SerialAM;
  components new SerialAMSenderC(AM_TESTERMSG) as SerialAMSender;
  components new SerialAMReceiverC(AM_TESTERMSG) as SerialAMReceiver;


  App -> MainC.Boot;

  App.HeartBeat-> HeartBeat;
  App.Leds -> LedsC;
  
  App.Int3 -> MicaBusC.Int3;
  App.Int2 -> MicaBusC.Int2;
  App.Int1 -> MicaBusC.Int1;
  App.Int0 -> MicaBusC.Int0;  
  App.Led3Pin -> MicaBusC.Led3Pin;
  App.Led2Pin -> MicaBusC.Led2Pin;
  App.Led1Pin -> MicaBusC.Led1Pin;
  App.USART1_CLK -> MicaBusC.USART1_CLK;
  //App.SPI_MOSI -> MicaBusC.SPI_MOSI;
  //App.SPI_MISO -> MicaBusC.SPI_MISO;
  //App.SPI_CLK -> MicaBusC.SPI_CLK;
  App.USART1_RXD -> MicaBusC.USART1_RXD;
  App.USART1_TXD -> MicaBusC.USART1_TXD;
  App.I2C_CLK -> MicaBusC.I2C_CLK;
  App.I2C_DATA -> MicaBusC.I2C_DATA;
  App.UART0_RXD -> MicaBusC.UART0_RXD;
  App.UART0_TXD -> MicaBusC.UART0_TXD;
  App.PW0 -> MicaBusC.PW0;
  App.PW2 -> MicaBusC.PW2;
  App.PW3 -> MicaBusC.PW3;
  App.PW4 -> MicaBusC.PW4;
  App.PW5 -> MicaBusC.PW5;
  App.Adc1 -> MicaBusC.Adc1;
  App.Adc2 -> MicaBusC.Adc2;
  App.Adc3 -> MicaBusC.Adc3;


  //diag uzenetek
  App.DiagMsg -> DiagMsgC;

  

  App.SerialControl -> SerialAM;
  App.SerialPacket-> SerialAM;
	
  App.UartSend -> SerialAMSender;
  App.UartReceive -> SerialAMReceiver;
}

